package jsyf.oa.entity.system;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.ientity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by LT on 2018/3/9.
 */
@Entity
@Table(name = "T_SYS_COMPANY_2_BRAND", schema = "oa", catalog = "")
public class Company2BrandEntity extends BaseEntity {
    private String companyId;
    private String brandId;

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getBrandId() {
        return brandId;
    }

    public void setBrandId(String brandId) {
        this.brandId = brandId;
    }

    @Override
    public JSONObject getJSONObject() {
        JSONObject json = new JSONObject();
        json.put("ID",this.getId());
        json.put("COMPANY_ID",this.getCompanyId());
        json.put("BRAND_ID",this.getBrandId());
        return json;
    }

    @Override
    public String getTableName() {
        return "T_SYS_COMPANY_2_BRAND";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject json = new JSONObject();
        json.put("ID","id");
        json.put("COMPANY_ID","companyId");
        json.put("BRAND_ID","brandId");
        return json;
    }
}
